<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />

    <title>Document</title>
     <!-- 1.插入vue -->
    <script src="../code/js/vue2.js"></script>
  </head>
  <body>
    <div id="app">
      <h1>{{ msg }}</h1>
    </div>
  </body>
 
</html>

<!-- 2.构造函数 -->
<script>
  var vm = new Vue({
    // 3.插入模板
    el: "#app",
    data: {
      msg: "helloword"
    }
  });
</script>
